In statistics, propagation of error (or propagation of uncertainty) is the effect of variables' uncertainties (or errors) on the uncertainty of a function based on them. When the variables are the values of experimental measurements they have uncertainties due to measurement limitations (e.g., instrument precision) which propagate to the combination of variables in the function.
The uncertainty is usually defined by the absolute error. Uncertainties can also be defined by the relative error (Δx)/x, which is usually written as a percentage.
Most commonly the error on a quantity, Δx, is given as the standard deviation, σ. Standard deviation is the positive square root of variance, σ2. The value of a quantity and its error are often expressed as x ± Δx. If the statistical probability distribution of the variable is known or can be assumed, it is possible to derive confidence limits to describe the region within which the true value of the variable may be found. For example, the 68% confidence limits for a one dimensional variable belonging to a normal distribution are ± one standard deviation from the value, that is, there is a 68% probability that the true value lies in the region x ± σ. Note that the percentage 68% is approximate as the exact percentage that corresponds to one standard deviation is slightly larger than this.
If the variables are correlated, then covariance must be taken into account.
Contents |
Let be a set of m functions which are linear combinations of variables with combination coefficients .
and let the variance-covariance matrix on x be denoted by .
Then, the variance-covariance matrix , of f is given by
This is the most general expression for the propagation of error from one set of variables onto another. When the errors on x are un-correlated the general expression simplifies to
Note that even though the errors on x may be un-correlated, their errors on f are always correlated.
The general expressions for a single function, f, are a little simpler.
Each covariance term, can be expressed in terms of the correlation coefficient by , so that an alternative expression for the variance of f is
In the case that the variables x are uncorrelated this simplifies further to
When f is a set of non-linear combination of the variables x, it must usually be linearized by approximation to a first-order Taylor series expansion, though in some cases, exact formulas can be derived that do not depend on the expansion.[1]
where denotes the partial derivative of fk with respect to the i-th variable. Or in matrix notation,
where J is the Jacobian matrix. Since f0k is a constant it does not contribute to the error on f. Therefore, the propagation of error follows the linear case, above, but replacing the linear coefficients, Aik and Ajk by the partial derivatives, and . In matrix notation,
That is, the Jacobian of the function is used to transform the rows and columns of the covariance of the argument.
Any non-linear function, f(a,b), of two variables, a and b, can be expanded as
hence:
In the particular case that , . Then
or
Error estimates for non-linear functions are biased on account of using a truncated series expansion. The extent of this bias depends on the nature of the function. For example, the bias on the error calculated for log x increases as x increases since the expansion to 1+x is a good approximation only when x is small.
In data-fitting applications it is often possible to assume that measurements errors are uncorrelated. Nevertheless, parameters derived from these measurements, such as least-squares parameters, will be correlated. For example, in linear regression, the errors on slope and intercept will be correlated and the term with the correlation coefficient, ρ, can make a significant contribution to the error on a calculated value.
In the special case of the inverse where , the distribution is a Cauchy distribution and there is no definable variance. For such ratio distributions, there can be defined probabilities for intervals which can be defined either by Monte Carlo simulation, or, in some cases, by using the Geary-Hinkley transformation.[2]
This table shows the variances of simple functions of the real variables , with standard deviations , correlation coefficient and precisely-known real-valued constants .
Function | Variance |
---|---|
For uncorrelated variables the covariance terms are zero. Expressions for more complicated functions can be derived by combining simpler functions. For example, repeated multiplication, assuming no correlation gives,
Given
Absolute Error | Variance |
---|---|
[3] |
We can calculate the uncertainty propagation for the inverse tangent function as an example of using partial derivatives to propagate error.
Define
where is the absolute uncertainty on our measurement of .
The partial derivative of with respect to is
Therefore, our propagated uncertainty is
where is the absolute propagated uncertainty.
A practical application is an experiment in which one measures current, I, and voltage, V, on a resistor in order to determine the resistance, R, using Ohm's law,
Given the measured variables with uncertainties, I±ΔI and V±ΔV, the uncertainty in the computed quantity, ΔR is
This has been a standard text used in undergraduate science and engineering for more than 40 years:
This text has detailed propagation-of-error material: